﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Modal/Master/Form1.Master" AutoEventWireup="true" CodeBehind="EditCustomerBank.aspx.cs" Inherits="Thksoft.Modal.EditCustomerBank" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script>
        function CheckCustomer() {
            var option = {};
            option.Window = window;
            option.CallBack = function (index, dom) {
                try {
                    var data = top.window.frames["layui-layer-iframe" + index].ModalData;
                    if (data.Text == "") {
                        return;
                    }
                    document.getElementById("FORM_CUSTOMER_ID").value = data.Value;
                    document.getElementById("FORM_CUSTOMER_NAME").innerHTML = data.Text;
                } catch (e) {

                }

            }
            var textid = document.getElementById("FORM_CUSTOMER_ID").value;
            if (textid!="") {
                option.Value = "?MODE=SINGELE&ID=" + textid;
            }
            else {
                option.Value = "?MODE=SINGELE";
            }
            top.MessageBox.OpenCustomer(option);
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Body" runat="server">
    <tr>
        <td align="right">选择客户：
        </td>
        <td align="left" colspan="3" style="padding-left: 10px;">
            <input type="button" value="单击选择客户公司" onclick="CheckCustomer()" style="width: 120px" />
            <asp:HiddenField runat="server" ID="FORM_CUSTOMER_ID" />
            <span style="color: Red;">*</span>
        </td>
    </tr>
    <tr>
        <td align="right">客户公司名称：
        </td>
        <td align="left" style="padding-left: 10px;">
            <asp:Label ID="FORM_CUSTOMER_NAME" runat="server">请选择</asp:Label>
        </td>
        <td align="right">开户账户：
        </td>
        <td align="left" style="padding-left: 10px;">
            <asp:TextBox ID="FORM_NUMBER" runat="server" Width="180px"></asp:TextBox>
            <span style="color: Red;">*</span>
        </td>
    </tr>
    <tr>
        <td align="right">银行类型：
        </td>
        <td align="left" style="padding-left: 10px;">
            <asp:DropDownList ID="FORM_BANK_ID" Width="180px" runat="server">
            </asp:DropDownList>
        </td>
        <td align="right" style="width: 30%;">开户姓名：
        </td>
        <td align="left" style="padding-left: 10px;">
            <asp:TextBox ID="FORM_REAL_NAME" runat="server" Width="180px"></asp:TextBox>
            <span style="color: Red;">*</span>
        </td>
    </tr>
</asp:Content>